package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.bean.change.BpChangeRecordListBean;
import com.joysuch.wwyt.bp.bean.change.BpChangeRecordQueryBean;
import com.joysuch.wwyt.bp.bean.change.BpChangeRecordApproveBean;
import com.joysuch.wwyt.bp.bean.change.BpChangeRecordCreateBean;
import com.joysuch.wwyt.bp.entity.change.BpChangeRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpChangeRecordService {

    Page<BpChangeRecordListBean> pageList(BpChangeRecordQueryBean queryBean, Pageable pageable);

    BpChangeRecord create(BpChangeRecordCreateBean bean);

    void delete(Long id);

    BpChangeRecordListBean findById(Long id);

    void approve(BpChangeRecordApproveBean bean) throws Exception;

    boolean checkPendingChange(Long id, String changeType);


}
